package com.gjintel.auction.business.service.serviceImpl;

import com.gjintel.auction.business.dao.IRegAuditDao;
import com.gjintel.auction.business.model.RegAudit;
import com.gjintel.auction.business.service.IRegAuditService;
import com.gjintel.sdk.base.dao.Page;
import com.gjintel.sdk.base.dao.Sort;
import com.gjintel.sdk.base.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2017/11/17.
 */
@Service
public class RegAuditServiceImpl extends BaseServiceImpl implements IRegAuditService {

    @Autowired
    private IRegAuditDao regAuditDao;

    @Override
    public void findAll(String auctionId, Page page, RegAudit regAudit, Sort sort, int loginUserType, String loginUserDeptUnit) {
        this.regAuditDao.findAll(auctionId, page, regAudit, sort, loginUserType,loginUserDeptUnit);
    }

    @Override
    public RegAudit findOneById(String id,String regId){
        return this.regAuditDao.findOneById(id,regId);
    }

    @Override
    public List<RegAudit> repeatSign(String auctionId, String regId){
        return this.regAuditDao.repeatSign(auctionId,regId);
    }

    @Override
    public List<RegAudit> findOneByAuctionId(String auctionId){
        return this.regAuditDao.findOneByAuctionId(auctionId);
    }

}
